<%@ page language="java" pageEncoding="UTF-8"%>
<%@ include file="/commons/jsp/taglibs.jsp"%>
<%@taglib uri="http://www.framework.com/taglib/tree" prefix="tree"%>
<form name="addDataForm" id="addArticleDataForm" method="post" action="${ctx}/business/webtypemanage/save">
	<input type="hidden" name="id" value="${webTypInfo.id}"/>
	<input type="hidden" name="createTime" value="<fmt:formatDate value="${webTypInfo.createTime}" pattern="yyy-MM-dd HH:mm:ss"/>"/>
	<input type="hidden" name="createrId" value="${webTypInfo.createrId}"/>
	<input type="hidden" name="createrName" value="${webTypInfo.createrName}"/>
	<table class="infoTable">
		<tbody>
		<tr>
			<th align="right" width="10%">类型名称</th>
			<td><input name="name" class="easyui-validatebox" size="30" value="${webTypInfo.name}" data-options="required:true" maxlength="25"/>
			</td>
			 <th align="right" width="10%">上级节点</th>
			<td><input name="pname" class="easyui-validatebox" id="pname" size="30" readonly="readonly" value="${webTypInfo.pname}" data-options="required:true" maxlength="50"/>
		    <input type="hidden" name="pid" id="articlePid" value="${webTypInfo.pid}"/>
			<span id="pModel" style="width: 100px;height: 100px;"><a href="javascript:void(0);" onclick="selectParentArticle()"><img src="${ctx}/commons/themes/icons/icon5.png" border="0" title="上级节点"/></a></span>
			</td>
		</tr>
		
		<!-- <tr>
			<th align="right" width="10%">排序值</th>
		 <td><input name="disSort" class="easyui-validatebox" size="20" value="" maxlength="50"/>
			</td>
		</tr> -->
		</tbody>
	</table>
	<tree:webTypeTree ctx="${ctx}" webTypeIds="articlePid" webTypeNames="pname" selectMethod="single" />
</form>


<script type="text/javascript">
	function selectParentArticle(){
		selarticlePidArticleTree($('#articlePid').val());
		$('#articlePidArticleTreeDialog').dialog('open');
	}
</script>

